#!/usr/bin/env node

console.log('PID:', process.pid);

const cp = require('child_process');
      //cmd = process.argv[2],
      //args = process.argv.slice(3,process.length);

//console.log(cmd);
//console.log(args);
//process.exit();

let child = cp.spawn('cat',['01-exec-file.js']);

//子进程的流通过pipe输出到父进程的流
child.stdout.pipe(process.stdout);

